package be.jprojects.subscription.gui;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JSplitPane;

public class TableAndDetailPanel extends JPanel {
	
	private JSplitPane splitPane;
	protected JPanel tablePanel;
	protected JPanel detailPanel;
	private JFrame frame;
	
	public TableAndDetailPanel(JFrame frame, JPanel tablePanel, JPanel detailPanel) {
		this.frame = frame;
		this.tablePanel = tablePanel;
		this.detailPanel = detailPanel;
		splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, true, tablePanel, detailPanel);
		splitPane.setOneTouchExpandable(true);	
		add(splitPane);
	}

}
